<?php
/**
 * Created by PhpStorm.
 * User: xiaofeng
 * motto: 现在的努力是为了小时候吹过的牛逼！
 * Date: 2020/9/17
 * Time: 23:27
 */
namespace app\common\business;
use app\common\model\mysql\SpecsValue as SpecsValueModel;
class SpecsValue extends BusBase {
    public $model = null;
    public function __construct()
    {
        $this->model = new SpecsValueModel();
    }

    /**
     * @param $specsId
     * @return array
     */
    public function getBySpecsId($specsId){
        try{
            $result = $this->model->getNormalBySpecsId($specsId,"id,name");
        }catch (\Exception $exception){
            return [];
        }
        $result = $result->toArray();
        return $result;
    }

}
